<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
  <caption>人物列表</caption>
  <tr>
    <th>用户名</th>
    <th>密码</th>
    <th>昵称</th>
  </tr>
</table>

<script>
  let arr = [{username:"张帅",pssword:250,nickname:"傻逼"},
    {username:"张映杰",pssword:38,nickname:"大傻逼"},
    {username:"余点言方",pssword:555,nickname:"大哥"}];
  let table = document.querySelector("table")
  for (let person of arr) {
    let usernameTd = document.createElement("td");
    let passwordTd = document.createElement("td");
    let nicknameTd = document.createElement("td");
    let tr = document.createElement("tr");
    usernameTd.innerText = person.username;
    passwordTd.innerText = person.pssword;
    nicknameTd.innerText = person.nickname;
    tr.append(usernameTd,passwordTd,nicknameTd);
    table.append(tr);
  }
</script>
</body>
</html>